package com.briup.gsauestore.dao;

import com.briup.gsauestore.bean.Collect;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author adam
 * @date  2022/1/12
 */
@Repository
public interface ICollectDao extends JpaRepository<Collect, Long> {
    Collect findByUserIdAndShopId(long userId,long shopId);

    List<Collect> findByUserId(long userId);
}
